package com.luyu.service.impl;

import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.luyu.entity.Region;
import com.luyu.mapper.RegionMapper;
import com.luyu.service.IRegionService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2024-10-18
 */
@Service
public class RegionServiceImpl extends ServiceImpl<RegionMapper, Region> implements IRegionService {



    @Override
    public List<String> listAllRegionCodesByParentRegionCode(String region_code) {
        if (StrUtil.isBlank(region_code)) {
            return new ArrayList<>();
        }
        // todo 后续可完善
        return List.of("31");
    }
}
